﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MealCardManagement
{
    public class User
    {
        public User(){ }

        public User(string name)
        {
            this.Name = name;
        }

        public int Id { get; set; }
        public string Name { get; set; }

        public MealCard CreateNewCard()
        {
            var newCard = new MealCard(this);
            MealCards.Add(newCard);
            return newCard;
        }

        public ICollection<MealCard> MealCards { get; set; } = new List<MealCard>();
    }
}
